﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VipSys.SystemEntity;
using VipSys.DataLayer;
using VipSys.Common.Library;
using VipSys.Business;
namespace VipSys.viewinfo
{
    public partial class ViewRoomie : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        private void BindData()
        {
            User roomie=new User();
            roomie =Roomie.Instance.GetRoomie();
            if(roomie!=null)
            {
                this.lblName.Text =roomie.Name;
                this.lblGender.Text = roomie.Gender;
                this.lblSchool.Text = roomie.School;
                this.lblTel.Text = roomie.Tel;
            }
        }
    }
}